package org.zfes.snowier.cloud.zbss.metting.router.service.admin;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zfes.snowier.web.controller.BaseController;
import org.zfes.snowier.cloud.zbss.metting.biz.model.MetCmsContent;
import org.zfes.snowier.cloud.zbss.metting.biz.service.IMetCmsContentService;
import org.zfes.snowier.core.data.DataSet;
@Controller("org.zfes.snowier.cloud.zbss.metting.router.service.admin.MetCmsContentController") 
@RequestMapping("/met/service/admin/metCmsContent")
public class MetCmsContentController extends BaseController {

	
	@Autowired
	private IMetCmsContentService metCmsContentService;
	
	
    @RequestMapping(value="/createMetCmsContent", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public  @ResponseBody Object createMetCmsContent(MetCmsContent metCmsContent){
		metCmsContentService.createMetCmsContent(metCmsContent);
    	return ajaxDoneSuccess("数据操作成功 ");
    }
	
    
    
	
    @RequestMapping(value="/updateMetCmsContent", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object updateMetCmsContent(MetCmsContent metCmsContent){
		metCmsContentService.updateMetCmsContent(metCmsContent);
		return ajaxDoneSuccess("数据操作成功 ");
    }
	
    @RequestMapping(value="/deleteMetCmsContent", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object deleteMetCmsContent(Long id){
		metCmsContentService.deleteMetCmsContent(id);
		return ajaxDoneSuccess("数据操作成功 ");
    }
    

}